<?php
include_once('common/header.php');	
if($AppUI->id <= 0 || !isset($_SERVER['HTTP_REFERER'])) {	
	$arrJson = array('error'=>1,'msg'=>$arrError[1]);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
	exit();
}
$intPlaceId 	= $objRequest->getParam('placeid', 0);
$objPlace	= new Place();
$intTotal = 0;
$arrImages = $objPlace->get($intPlaceId);
$this->view->strMap  	= $arrImages['map'];
$this->view->intUserId	= $AppUI->id;	
$this->view->intPlaceId	= $intPlaceId;
$objView 	= Zend_Registry::get('objView');
$strData	= $objView->fetch('place/box-map.tpl');
$arrJson 	= array('error'=> 0, 'dhtml'=>$strData);
echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';

exit();
?>
